import service from '@/utils/request'

export const yryyslide = () => {
  return service({
    url: '/yryy/yryyGetSlide',
    method: 'get'
  })
}

export const yryyDelSlide = (params) => {
  return service({
    url: '/yryy/yryyDeleteSlide',
    method: 'delete',
    params
  })
}

export const yryySlideDetail = (params) => {
  return service({
    url: '/yryy/yryyGetidSlide',
    method: 'get',
    params
  })
}

export const yryyUpdateSlide = (data) => {
  return service({
    url: '/yryy/yryyUpdateSlide',
    method: 'put',
    data
  })
}

export const yryyCreateSlide = (data) => {
  return service({
    url: '/yryy/yryyCreateSlide',
    method: 'post',
    data
  })
}
